package com.yunban.project.message.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.yunban.project.message.enums.MessageType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author: lijiajun
 * @date: 2025-03-07
 * @version: 1.0
 */
@Data
@TableName
@Schema(description = "客服消息")
public class CSMessage {
    @TableId(type = IdType.AUTO)
    @Schema(description = "消息ID")
    private Long id;
    @Schema(description = "消息类型")
    private MessageType type;
    @Schema(description = "会话ID")
    private String sessionId;
    @Schema(description = "消息内容")
    private String message;
    @TableField(fill = FieldFill.INSERT)
    private long createdBy;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}
